using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class BorderColorStyleWidthType
    {

        private string _Bottom;
        private string _Default;
        private string _Left;
        private string _Right;
        private string _Top;

        public string Bottom
        {
            get
            {
                return _Bottom;
            }
            set
            {
                _Bottom = value;
            }
        }

        public string Default
        {
            get
            {
                return _Default;
            }
            set
            {
                _Default = value;
            }
        }

        public string Left
        {
            get
            {
                return _Left;
            }
            set
            {
                _Left = value;
            }
        }

        public string Right
        {
            get
            {
                return _Right;
            }
            set
            {
                _Right = value;
            }
        }

        public string Top
        {
            get
            {
                return _Top;
            }
            set
            {
                _Top = value;
            }
        }

        public BorderColorStyleWidthType()
        {
        }

        public BorderColorStyleWidthType Write()
        {
            BorderColorStyleWidthType borderColorStyleWidthType = new BorderColorStyleWidthType();
            ArrayList arrayList1 = new ArrayList();
            ArrayList arrayList2 = new ArrayList();
            if (_Bottom != null)
            {
                arrayList1.Add(_Bottom);
                arrayList2.Add(1);
            }
            if (_Default != null)
            {
                arrayList1.Add(_Default);
                arrayList2.Add(2);
            }
            if (_Left != null)
            {
                arrayList1.Add(_Left);
                arrayList2.Add(3);
            }
            if (_Right != null)
            {
                arrayList1.Add(_Right);
                arrayList2.Add(4);
            }
            if (_Top != null)
            {
                arrayList1.Add(_Top);
                arrayList2.Add(5);
            }
            borderColorStyleWidthType.Items = arrayList1.ToArray();
            borderColorStyleWidthType.ItemsElementName = (ItemsChoiceType3[])arrayList2.ToArray(typeof(ItemsChoiceType3));
            arrayList2 = arrayList1 = null;
            return borderColorStyleWidthType;
        }

    } // class BorderColorStyleWidthType

}

